﻿using System.Text.Json.Serialization;

namespace RsCms.UI.Models
{
    /// <summary>
    /// 分页数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageData<T>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        [JsonPropertyName("currentPage")] public long CurrentPage { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        [JsonPropertyName("totalPages")] public long TotalPages { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        [JsonPropertyName("totalItems")] public long TotalItems { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        [JsonPropertyName("items")] public List<T> Items { get; set; }


    }
}
